
use data/postcompareyear_gsem_grm_1952.dta

*** SHOWING DIF VIOLATIONS

ologit partyid_base theta_grm_fixed
est store mod_base
ologit partyid_base c.theta_grm_fixed##i.post
est store mod_nonunif
lrtest mod_base mod_nonunif

ologit strongpartisan theta_grm_fixed
est store mod_base
ologit strongpartisan c.theta_grm_fixed##i.post
est store mod_nonunif
lrtest mod_base mod_nonunif

ologit partyaffect theta_grm_fixed
est store mod_base
ologit partyaffect c.theta_grm_fixed##i.post
est store mod_nonunif
lrtest mod_base mod_nonunif

ologit attpartythermdiff theta_grm_fixed
est store mod_base
ologit  attpartythermdiff c.theta_grm_fixed##i.post
est store mod_nonunif
lrtest mod_base mod_nonunif

ologit attpresthermdiff theta_grm_fixed
est store mod_base
ologit  attpresthermdiff c.theta_grm_fixed##i.post
est store mod_nonunif
lrtest mod_base mod_nonunif

ologit partyprespref theta_grm_fixed
est store mod_base
ologit partyprespref c.theta_grm_fixed##i.post
est store mod_nonunif
lrtest mod_base mod_nonunif

ologit partyvotehouse3 theta_grm_fixed
est store mod_base
ologit partyvotehouse3 c.theta_grm_fixed##i.post
est store mod_nonunif
lrtest mod_base mod_nonunif




*** Now for issues and ideology

ologit attpresthermdiff theta_grm_fixed_issues
est store mod_base
ologit  attpresthermdiff c.theta_grm_fixed_issues##i.post
est store mod_nonunif
lrtest mod_base mod_nonunif

ologit attpartythermdiff theta_grm_fixed_issues
est store mod_base
ologit  attpartythermdiff c.theta_grm_fixed_issues##i.post
est store mod_nonunif
lrtest mod_base mod_nonunif

ologit partyaffect theta_grm_fixed_issues
est store mod_base
ologit partyaffect c.theta_grm_fixed_issues##i.post
est store mod_nonunif
lrtest mod_base mod_nonunif

ologit partyprespref theta_grm_fixed_issues
est store mod_base
ologit partyprespref c.theta_grm_fixed_issues##i.post
est store mod_nonunif
lrtest mod_base mod_nonunif

ologit partyvotehouse3 theta_grm_fixed_issues
est store mod_base
ologit partyvotehouse3 c.theta_grm_fixed_issues##i.post
est store mod_nonunif
lrtest mod_base mod_nonunif

ologit strongpartisan theta_grm_fixed_issues
est store mod_base
ologit strongpartisan c.theta_grm_fixed_issues##i.post
est store mod_nonunif
lrtest mod_base mod_nonunif

ologit partylibcon3 theta_grm_fixed_issues
est store mod_base
ologit partylibcon3 c.theta_grm_fixed_issues##i.post
est store mod_nonunif
lrtest mod_base mod_nonunif

ologit partyabortion theta_grm_fixed_issues
est store mod_base
ologit partyabortion c.theta_grm_fixed_issues##i.post
est store mod_nonunif
lrtest mod_base mod_nonunif

ologit partygovserv3 theta_grm_fixed_issues
est store mod_base
ologit partygovserv3 c.theta_grm_fixed_issues##i.post
est store mod_nonunif
lrtest mod_base mod_nonunif

ologit partyaidtoblacks theta_grm_fixed_issues
est store mod_base
ologit partyaidtoblacks c.theta_grm_fixed_issues##i.post
est store mod_nonunif
lrtest mod_base mod_nonunif

